package Test01;

import java.util.ArrayList;

public class Test1 {
    public static void main(String[] args) {
        ArrayList<Student> students = new ArrayList<>();
        students.add(new Student(1, "小亮", 99));
        students.add(new Student(2, "小强", 85));
        students.add(new Student(3, "小响", 90));
        students.add(new Student(4, "小勇", 75));

        int index = 0;
        int min=students.get(0).getScore();
        for (int i = 1; i < students.size(); i++) {
if (min>students.get(i).getScore()){
    min=students.get(i).getScore();
    index=i;
}
        }
        students.remove(index);
        students.forEach(System.out::println);

    }
}